Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moving simulator tests so they are distributed as part of Prescient #139

Merged

Conversation

bknueven
Copy link
Collaborator

For downstream packages, it would be nice to make our simulator regression test code accessible; see IDAES/idaes-pse#652, IDAES/idaes-pse#638, and gmlc-dispatches/dispatches#80.

This PR move the simulator regression test code into the simulator directory, so one can import the base-class regression checker as:

from prescient.simulator.tests.test_simulator import SimulatorRegressionBase

and use SimulatorRegressionBase for their own regression tests.

@bknueven
Copy link
Collaborator Author

@xiangao1 would you mind having a look at this?

Copy link
Collaborator

@jsiirola jsiirola left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good. However, you will also need to update the package_data directive in the setup.py to pick up (and package) the non-*.py files in the tests.

prescient/simulator/tests/test_simulator.py Show resolved Hide resolved
@bknueven bknueven requested a review from jsiirola February 28, 2022 23:45
@bknueven bknueven enabled auto-merge (squash) February 28, 2022 23:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants